import {
	http
} from '../request/index.js';

// 获取用户信息
export const userinfo = (params) => {
	return http.get('/api/user/info', params);
}

// 获取用户VIP
export const getUserVip = (params) => {
	return http.get('/api/user/getUserVip', params);
}

// 教材类型
export const getTypeList = (params) => {
	return http.get('/api/textbook/getTypeList', params);
}

// 获取教材类型列表
export const getList = (params) => {
	return http.get('/api/textbook/getList', params);
}

// 下载获取文件链接
export const getDown = (params) => {
	return http.get('/api/textbook/getDown', params);
}

// 等级
export const getUserBasalLevel = (params) => {
	return http.get('/api/user/getUserBasalLevel', params);
}

// 获取学习语种
export const getUserLearningType = (params) => {
	return http.get('/api/user/getUserLearningType', params);
}

// 修改用户信息
export const profile = (params) => {
	return http.post('/api/user/profile', params);
}

// 上传文件
export const upload = (params) => {
	return http.post('/api/upload/upload', params);
}

// 获取省市区地址
export const areagetList = (params) => {
	return http.get('/api/area/getList', params);
}

// 我的课前预习
export const getUserList = (params) => {
	return http.get('/api/textbook/getUserList', params);
}

// 用户统计
export const getUserCount = (params) => {
	return http.get('/api/user/getUserCount', params);
}

// 试听课反馈
export const setAuditionFeedback = (params) => {
	return http.post('/api/fitness_course_reservation/setAuditionFeedback', params);
}

// 获取固定课程訂單分享数据
export const getShareOrderData = (params) => {
	return http.post('/api/fitness_course_reservation_order/getShareOrderData', params);
}

// 单元列表
export const getTextbookTypeList = (params) => {
	return http.get('/api/textbook/getTextbookTypeList', params);
}

// 等级发生改变弹窗
export const getUserLevelEject = (params) => {
	return http.get('/api/user/getUserLevelEject', params);
}

// 查询最近的约课数据
export const getHourLog = (params) => {
	return http.get('/api/user/getHourLog', params);
}

// 推广中心
export const getUserShareCount = (params) => {
	return http.get('/api/user/getUserShareCount', params);
}

// 提现
export const userWithdrawSubmit = (params) => {
	return http.post('/api/user/userWithdrawSubmit', params);
}
